@database BlitzList.guide @width 70 @node "Introduction" "Introduction" @wordwrap Blitz Mailing List Guide ======================== This guide is intended as an easy reference to the Blitz mailing list. It contains messages posted to the Blitz mailing list during the month shown on the main page. --- Administrative commands for the blitz-list list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: To subscribe to the list, send a message to: To remove your address from the list, send a message to: Send mail to the following for info and FAQ for this list: To get messages 123 through 145 (a maximum of 100 per request), mail: To get an index with subject and author for messages 123-456 , mail: They are always returned as sets of 100, max 2000 per request, so you'll actually get 100-499. To receive all messages with the same subject as message 12345, send an empty message to: The messages do not really need to be empty, but I will ignore their content. Only the ADDRESS you send to is important. You can start a subscription for an alternate address, for example "john@...", just add a hyphen and your address (with '=' instead of '@') after the command word: To stop subscription for this address, mail: In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription. If despite following these instructions, you do not get the desired results, please contact my administrator at hassel@... or my owner at blitz-list-owner@netsoc.ucd.ie. Please be patient, they are a lot slower than I am ;-) This AmigaGuide was created using GuideMaker.rexx Roger Light 1999 @endnode @node "Main" "Blitz Mailing List Guide" @{b}Blitz Mailing List Guide ========================@{ub} April 2002 @{" Introduction " link Introduction } Introduction to the guide. @{" Search " SYSTEM "RUN <>NIL: Searchguide FINAME"} Search this file (requires SearchGuide) ------------------------------------------------------------------- @{" #SIGBREAKF_CTRL_C " Link "mail_0"} amorel @{" Re: #SIGBREAKF_CTRL_C " Link "mail_1"} David McMinn @{" Re: #SIGBREAKF_CTRL_C " Link "mail_2"} amorel @{" AB2.26 " Link "mail_3"} amorel @{" Re: AB2.26 " Link "mail_4"} Bernd Roesch @{" Re: AB2.26 " Link "mail_5"} amorel @{" Re: AB2.26 " Link "mail_6"} amorel @{" Re: AB2.26 " Link "mail_7"} Bernd Roesch @{" AHI " Link "mail_8"} amorel @{" Re: AHI " Link "mail_9"} Thilo K @{" Re: AHI " Link "mail_10"} amorel @{" Re: AHI " Link "mail_11"} amorel @{" AHI soundfunc hook " Link "mail_12"} Thilo K @{" Re: AHI soundfunc hook " Link "mail_13"} Bernd Roesch @{" Array subscript " Link "mail_14"} amorel @{" Re: BB2 + Date: 04-30-02 04:35:49 Subject: @{b}#SIGBREAKF_CTRL_C@{ub} Can anyone tell me why this code will NOT goto cleanend if I send it a ctrl_c signal. In other words it doesn`t respond to a break. I know I got it to work, but it doesn`t currently. SetSignal_(0,0) also doesn`t work. signals.l=SetSignal_(0,#SIGBREAKF_CTRL_C) If signals=signals & #SIGBREAKF_CTRL_C Goto cleanend EndIf Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_1" " Re: #SIGBREAKF_CTRL_C " From: David McMinn Date: 04-30-02 12:38:16 Subject: @{b}Re: #SIGBREAKF_CTRL_C@{ub} > Can anyone tell me why this code will NOT goto cleanend if I send it a ctrl_c > signal. In other words it doesn`t respond to a break. I know I got it to work, > but it doesn`t currently. SetSignal_(0,0) also doesn`t work. > signals.l=SetSignal_(0,#SIGBREAKF_CTRL_C) > If signals=signals & #SIGBREAKF_CTRL_C This line needs to be: If signals&#SIGBREAKF_CTRL_C=#SIGBREAKF_CTRL_C [) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | ICQ=16827694 http://www.david-mcminn.co.uk | dave@... 'All mail clients suck. This one just sucks less.' - Michael Elkins --------------------------------------------------------------------- @ENDNODE @NODE "mail_2" " Re: #SIGBREAKF_CTRL_C " From: amorel Date: 04-30-02 18:40:59 Subject: @{b}Re: #SIGBREAKF_CTRL_C@{ub} On 30-Apr-02, David McMinn wrote: C=This line needs to be: C=If signals&#SIGBREAKF_CTRL_C=#SIGBREAKF_CTRL_C Ok that works, thanks. Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_3" " AB2.26 " From: amorel Date: 04-29-02 04:40:19 Subject: @{b}AB2.26@{ub} Now it`s not possible to do something like this: ng25\ng_GadgetText=textread25_1$ and this: *procmp\mp_Node\ln_Name="BlahSomePort" It gives an error "can`t convert types". I read sth about *pointer="xxx" not being possible anymore, but I can`t understand it fully. Adding a & in front of the string helps, but I don`t feel like changing whole my source. It obviously worked ok. What wasn`t stable about this, as the docs say it can not work stable? Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_4" " Re: AB2.26 " From: Bernd Roesch Date: 04-29-02 09:48:10 Subject: @{b}Re: AB2.26@{ub} *procmp\mp_Node\ln_Name="BlahSomePort" a$="12345" ;add this line after it Then print the ln_Name ln_name has now the string 12345 in 2.25 because the ln_Name points to the Blitz temporary stringbuffer and the buffer is changed with every stringoperation Keep in mind that you can get very strange errors when you do this ----- Original Message ----- From: "amorel" To: "BlizList" Sent: Monday, April 29, 2002 5:40 AM Subject: AB2.26 > Now it`s not possible to do something like this: > ng25\ng_GadgetText=textread25_1$ > and this: > *procmp\mp_Node\ln_Name="BlahSomePort" > It gives an error "can`t convert types". I read sth about *pointer="xxx" > being possible anymore, but I can`t understand it fully. Adding a & in front > of the string helps, but I don`t feel like changing whole my source. It > obviously worked ok. What wasn`t stable about this, as the docs say it can > work stable? > Regards > Sweetness I was only joking when I said I`d like to smash every > tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html > Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html > -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- > -----------* ( QNX, Linux and Dos versions planned ) *----------- > --------------------------------------------------------------------- > To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie > For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie --------------------------------------------------------------------- @ENDNODE @NODE "mail_5" " Re: AB2.26 " From: amorel Date: 04-29-02 15:51:56 Subject: @{b}Re: AB2.26@{ub} On 29-Apr-02, David McMinn wrote: C=On 29 Apr 2002 at 4:40, amorel wrote: C=> It gives an error "can`t convert types". I read sth about *pointer="xxx" C=Probably because theose are pointers to bytes - doesn't this only work when C=you are using a C=pointer to a string? C=e.g. C=*foo.s=&blah$ ; will work C=*bar.b=&blah$ ; will not I don`t know, they are strings or STRPTR or whatever afaik. It works the way I do it(pre 2.26 (ami)blitz does compile ok), otherwise I would have noticed by now :-) Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_6" " Re: AB2.26 " From: amorel Date: 04-29-02 16:03:43 Subject: @{b}Re: AB2.26@{ub} On 29-Apr-02, Bernd Roesch wrote: C=*procmp\mp_Node\ln_Name="BlahSomePort" C=a$="12345" ;add this line after it C=Then print the ln_Name C=ln_name has now the string 12345 in 2.25 C=because the ln_Name points to the Blitz temporary stringbuffer and the C=buffer is changed with every stringoperation C=Keep in mind that you can get very strange errors when you do this I see, maybe that explains why I get some characters on a window somewhere printed outside gadgets(though the gadgets still have the texts and everything works ok), see the attached windopw grab. After closing and opening the window it`s gone. I guess I have to do: var$="BlahSomePort" *procmp\mp_Node\ln_Name=&var$ And it will all be ok? I know that makes the compile error go away. Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- @{fg shine}There should be a file mail_6/window.iff included with this guide.@{fg text} @ENDNODE @NODE "mail_7" " Re: AB2.26 " From: Bernd Roesch Date: 04-29-02 16:43:58 Subject: @{b}Re: AB2.26@{ub} > var$="BlahSomePort" > *procmp\mp_Node\ln_Name=&var$ Yes thats ok But i can try for this situation to add a new AB2 feature immediate strings so a *procmp\mp_Node\ln_Name=&"blahsomeport" can work too BTW: this maybe can speedup stringoperations a lot because normaly the string is copy to the tempbuffer.and the pointer of the tempbuffer is then given. then the stringbuffer is copy to the variable with &"blahport" the pointer to the binary maybe can given If you do lots of constant compares this give much speedincrease ----- Original Message ----- From: "amorel" To: Sent: Monday, April 29, 2002 5:03 PM Subject: Re: AB2.26 > On 29-Apr-02, Bernd Roesch wrote: > C=*procmp\mp_Node\ln_Name="BlahSomePort" > C=a$="12345" ;add this line after it > C=Then print the ln_Name > C=ln_name has now the string 12345 in 2.25 > C=because the ln_Name points to the Blitz temporary stringbuffer and the > C=buffer is changed with every stringoperation > C=Keep in mind that you can get very strange errors when you do this > I see, maybe that explains why I get some characters on a window somewhere > printed outside gadgets(though the gadgets still have the texts and everything > works ok), see the attached windopw grab. After closing and opening the window > it`s gone. > I guess I have to do: > var$="BlahSomePort" > *procmp\mp_Node\ln_Name=&var$ > And it will all be ok? I know that makes the compile error go away. > Regards > Sweetness I was only joking when I said I`d like to smash every > tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html > Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html > -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- > -----------* ( QNX, Linux and Dos versions planned ) *----------- ---------------------------------------------------------------------------- > --------------------------------------------------------------------- > To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie > For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie --------------------------------------------------------------------- @ENDNODE @NODE "mail_8" " AHI " From: amorel Date: 04-09-02 02:53:32 Subject: @{b}AHI@{ub} AHI is a piece of shit and the author admits it if you read his docs well :-) But that`s beyond my point, we`re stuck with it, how sad it may be. I don`t get the damn example in blitzahifuncs.lha working, except from a little click. AHI is working ok on my system, as other programs using it testify. Told you AHI sucks ;-) Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_9" " Re: AHI " From: Thilo K hler Date: 04-09-02 04:34:58 Subject: @{b}Re: AHI@{ub} Hello amorel AHI is ok, but a bit overheaded on slower systems. If you like I can send you my source. I did it for the device interface (found in Samplemanager.lha, Aminet) and for the function interface (found in HD-Rec), including AHI mode requester. It is in the style of the image.include, just like if AHI_open {} While morebuffers If AHI_nextbuffer {} AHI_write {mybufferptr.l,blength.l} End If Wend AHI_close {} End if The sources are optimized for my needs, but maybe this helps If you only need to output a double buffered stream I recomend the device interface (has also a function for visualisation of output level and calculation of current timeindex), otherwise you will need the function interface (which is much more difficult to use, and much means really much). Ciao, Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_10" " Re: AHI " From: amorel Date: 04-09-02 03:38:49 Subject: @{b}Re: AHI@{ub} On 09-Apr-02, Thilo K hler wrote: C=If you like I can send you my source. Sure go ahead. C=output level and calculation of current timeindex), otherwise you C=will need the function interface C=(which is much more difficult to use, and much means really much). I won`t be making a hd-recorder or something soon, if ever. It`ll be playing individual samples. Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_11" " Re: AHI " From: amorel Date: 04-09-02 14:22:04 Subject: @{b}Re: AHI@{ub} On 09-Apr-02, Toby Zu dveld wrote: C=Try loading the samples into chipmemory... I do that with loudsound and then the AHIUpload function does the rest. Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_12" " AHI soundfunc hook " From: Thilo K hler Date: 04-12-02 01:21:02 Subject: @{b}AHI soundfunc hook@{ub} Hi all! Does someone know some stuff about the AHI library interface ? My question: When I playback sound data it has a slightly crackling noise in it. The higher frequencies are more affected then the lower. I found out that is has something to do with the soundfunc hook I am using for doublebuffering. How much time I am allowed to spend in the soudnfunc hook ? I do mixing some audiostreams to fill the next (short) buffer. Seems like I am spending more time than one sample (sampleframe!) needs for playback and the AHI system is blocked and repeats this sample (thats why lower noises are not much affected, as neighboured samples are almost equal). This would mean the time to spend in the soudnfunc hook is limited to the duration of one sample, e.g. 1/44100 sec if you playback at 44100 Hz. Any ideas ? Anyone did a bit more than setting up the loop within the soundfunc ? Ciao, Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_13" " Re: AHI soundfunc hook " From: Bernd Roesch Date: 04-12-02 17:12:08 Subject: @{b}Re: AHI soundfunc hook@{ub} > How much time I am allowed to spend in the soudnfunc hook ? > I do mixing some audiostreams to fill the next (short) buffer. You should only change the playbuffer to your last calculate one and do a software interrupt and calc your new data to the last free buffer.Tasks are not dropout stable but for debugging you can also signal a task and calculate data from here. ----- Original Message ----- From: "Thilo K hler" To: Sent: Friday, April 12, 2002 2:21 AM Subject: AHI soundfunc hook > Hi all! > Does someone know some stuff about the AHI library > interface ? > My question: > When I playback sound data it has a slightly crackling > noise in it. The higher frequencies are more affected then the > lower. I found out that is has something to do with > the soundfunc hook I am using for doublebuffering. > How much time I am allowed to spend in the soudnfunc hook ? > I do mixing some audiostreams to fill the next (short) buffer. > Seems like I am spending more time than one sample (sampleframe!) > needs for playback and the AHI system is blocked and repeats > this sample (thats why lower noises are not much affected, > as neighboured samples are almost equal). > This would mean the time to spend in the soudnfunc hook is limited > to the duration of one sample, e.g. 1/44100 sec if you playback > at 44100 Hz. > Any ideas ? > Anyone did a bit more than setting up the loop within the soundfunc ? > Ciao, > Thilo > --------------------------------------------------------------------- > To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie > For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie --------------------------------------------------------------------- @ENDNODE @NODE "mail_14" " Array subscript " From: amorel Date: 04-30-00 02:11:53 Subject: @{b}Array subscript@{ub} This code: loadtitle$=title$ Dim tag2.TagItem(14) tag2(0)\ti_Tag=#ASLFR_Screen,*scr0 tag2(1)\ti_Tag=#ASLFR_InitialPattern,&pat$ tag2(2)\ti_Tag=#ASLFR_TitleText,&loadtitle$ tag2(3)\ti_Tag=#ASLFR_InitialFile,&filename$ tag2(4)\ti_Tag=#ASLFR_InitialDrawer,&pathname$ tag2(5)\ti_Tag=#ASLFR_InitialLeftEdge,savexy\leftedge tag2(6)\ti_Tag=#ASLFR_InitialTopEdge,savexy\topedge tag2(7)\ti_Tag=#ASLFR_InitialWidth,savexy\width tag2(8)\ti_Tag=#ASLFR_InitialHeight,savexy\height tag2(9)\ti_Tag=#ASLFR_DoSaveMode,save.b tag2(10)\ti_Tag=#ASLFR_DrawersOnly,drawer.b tag2(11)\ti_Tag=#ASLFR_DoPatterns,NTrue tag2(12)\ti_Tag=#ASLFR_SleepWindow,NTrue tag2(13)\ti_Tag=#TAG_END,0 *loadfilereq=AllocAslRequest_(#ASL_FileRequest,&tag2(0)) Gives an "Array subscript out of range" error at the AllocAslRequest_ in AB2.26, it didn`t do this in earlier versions. It doesnt matter if you use tag2(0) or &tag2(0). I normally don`t use the "&" in front of a tag array, but this code was partially copied from statfuncs. Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_15" " Re: BB2 + Date: 04-29-02 12:45:53 Subject: @{b}Re: BB2 + To: "BlizList" Sent: Monday, April 29, 2002 5:40 AM Subject: AB2.26 > Now it`s not possible to do something like this: > ng25\ng_GadgetText=textread25_1$ > and this: > *procmp\mp_Node\ln_Name="BlahSomePort" > It gives an error "can`t convert types". I read sth about *pointer="xxx" > being possible anymore, but I can`t understand it fully. Adding a & in front > of the string helps, but I don`t feel like changing whole my source. It > obviously worked ok. What wasn`t stable about this, as the docs say it can > work stable? > Regards > Sweetness I was only joking when I said I`d like to smash every > tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html > Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html > -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- > -----------* ( QNX, Linux and Dos versions planned ) *----------- > --------------------------------------------------------------------- > To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie > For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie --------------------------------------------------------------------- @ENDNODE @NODE "mail_16" " Re: BB2 + Date: 04-30-00 01:24:05 Subject: @{b}Re: BB2 + ng25\ng_GadgetText=textread25_1$ I made an error here, I normally DO: ng25\ng_GadgetText=&textread25_1$ but happened to not do it by mistake at this occasion(and some other places in the same window creation). So I do NOT have to fix much code and the other example luckily doesn`t occure a lot in my source. Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_17" " Changing MUI cycle items "on-the-fly". " From: Gareth Griffiths Date: 04-19-02 22:45:40 Subject: @{b}Changing MUI cycle items "on-the-fly".@{ub} Right, some background info on the MUI cycle gadgets first. The items in the cycle list are not stored in an array, they are created in the MUICycle command. How can I change the items in the list? Is there a property for it? Using MUISet I'd have to use an array, which I'm a bit loathe to do (although its not too troubling, admittedly) but is there any way of doing it without an array? Cheers, GazChap. Gareth Griffiths -- mailto:mail@... -- http://www.gazchap.com "Bother", said Pooh, as Eeyore sneezed the crack all over Owl... --------------------------------------------------------------------- @ENDNODE @NODE "mail_18" " Dynamic Lists " From: Thilo K hler Date: 04-03-02 02:59:01 Subject: @{b}Dynamic Lists@{ub} Hi all! I have following questions to the dynamic Lists (from Amorel (?)) 1. Is it correct to do If AddItem (mydynlist()) mydynlist()\x = 0 End If because I dont see the "if additem() then" in the example, there is only Additem() without if. 2. Seems that new memory is allocated every 10-20 new entries. When Items are freed I dont see the memory going back to the system. Is it freed at all when I do killitem() ? 3. Is it correct to do Clearlist(mydynlist()) if I want to throw all items away ? Is the memory freed then or is there no way to free it (except end of Program) ? 4. What happens if no memory is available ? Guru ? Then I suggest to let Additem() simply fail to make it 100% compatible to normal lists. Thanks for any help, Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_19" " Re: Dynamic Lists " From: Tony Rolfe Date: 04-03-02 03:49:13 Subject: @{b}Re: Dynamic Lists@{ub} On 3 Apr 2002 at 2:59, Thilo K hler wrote: > Hi all! > I have following questions to the dynamic Lists > (from Amorel (?)) > 1. Is it correct to do > If AddItem (mydynlist()) > mydynlist()\x = 0 > End If > because I dont see the "if additem() then" in the example, > there is only Additem() without if. There is an optional flag with DLL. If the #DLL_TRAP_ERRORS flag is zero then you must do your own error handling. In other words, you do the above code and handle the else clause yourself. If #DLL_TRAP_ERRORS is set to 1 then the DLL routines trap all errors and you have to supply a function called Fatal_Error, which takes a string argument. A sample is supplied which simply pops up a requester with the string supplied. > 2. Seems that new memory is allocated every 10-20 new > entries. When Items are freed I dont see the memory > going back to the system. Is it freed at all when I do killitem() ? All memory is deallocated when no longer used. Either at killitem or Clearlist. How the original Blitz commands work, I'm not sure. > 3. Is it correct to do > Clearlist(mydynlist()) > if I want to throw all items away ? Is the memory freed then or > is there no way to free it (except end of Program) ? Yes, with DLL, not sure with Blitz lists > 4. What happens if no memory is available ? Guru ? > Then I suggest to let Additem() simply fail to make it 100% > compatible to normal lists. With DLL, see above #1. With Blitz Lists you have to handle this in the else clause. Tony Rolfe For Gill & Tony Rolfe EDGEWATER MOTEL 1 Princess Avenue South BURRILL LAKE NSW 2539 Phone: +61 2 4455 2604 Fax: +61 2 4454 4095 http://www.shoalhaven.net.au/edgewater --------------------------------------------------------------------- @ENDNODE @NODE "mail_20" " Re: Dynamic Lists " From: amorel Date: 04-03-02 03:54:18 Subject: @{b}Re: Dynamic Lists@{ub} On 03-Apr-02, Thilo K hler wrote: C=(from Amorel (?)) Hey ;-) C=1. Is it correct to do C=If AddItem (mydynlist()) C= mydynlist()\x = 0 C=End If Yes, as I am doing it and it does work. I don`t know if it actually will return false if out of memory, I recall Bernd saying that it doesn`t(it has internal error checking or so, I`d rather (also) have returning false if so) or it might be about sth else. But I already was doing it anyways and as it is supposed to return a value why not test for it. C=2. Seems that new memory is allocated every 10-20 new C=entries. When Items are freed I dont see the memory C=going back to the system. Is it freed at all when I do killitem() ? You could change that in the arrayslib source and recompile iirc. C=3. Is it correct to do C=Clearlist(mydynlist()) C=if I want to throw all items away ? Is the memory freed then or C=is there no way to free it (except end of Program) ? Dim list listname(0) clears the list Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html ----* Coming soon a new audio and midi sequencer on AmigaOS *---- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_21" " Re: Dynamic Lists " From: Bernd Roesch Date: 04-03-02 12:41:49 Subject: @{b}Re: Dynamic Lists@{ub} ----- Original Message ----- From: "Thilo K hler" To: Sent: Wednesday, April 03, 2002 3:59 AM Subject: Dynamic Lists > Hi all! > I have following questions to the dynamic Lists > (from Amorel (?)) > 1. Is it correct to do > If AddItem (mydynlist()) > mydynlist()\x = 0 > End If > because I dont see the "if additem() then" in the example, > there is only Additem() without if. Standard Blitz mem alloc (allocmem) fail with a trap so you need to install a errorhandler now but i plan to add memalloc commands that return a 0 soon > 2. Seems that new memory is allocated every 10-20 new > entries. When Items are freed I dont see the memory > going back to the system. Is it freed at all when I do killitem() ? No this is because poolmem use a puddle size of 2000 Bytes The default value is after every 3. listitemadd the memory is alloc.(can change if you wish for more speed) Reason is simple memalloc take much time. See textprocessing Programs golded/finalwriter.... Try loadijng 100000 Lines (it use lists every line is a entry) You notice long load times. If you release your text you notice even much longer time where mem is released (see how your memory is increase).Releasing mem take much time because the mementry must search from the OS to merge the freed mem in.Also it cause fragmentation > 3. Is it correct to do > Clearlist(mydynlist()) > if I want to throw all items away ? Is the memory freed then or > is there no way to free it (except end of Program) ? No this free not the mem You need to do a dim list mydimlist() to clear all mem I dont add a freemem code if you release a item because i think you load something so you have the memory. Then if you work on it normaly it grows.It is really selden that you want to shrink a project i think. If someone want to change the Code it is possible if you use a increase num of 1 to free the mem But i see no need for this.Speedloss is very extrem if do this also if you use poolmem Setting the increase size per AB2 Instruction i can add if someone wish it (now you can change the constant in the source) If you load/make another project then the dim list mydimlist() clear all mem > 4. What happens if no memory is available ? Guru ? > Then I suggest to let Additem() simply fail to make it 100% > compatible to normal lists. If i have allocmem working without trapping this return false ok i see you wish it so this get now a higher priority in my todo list > Thanks for any help, > Thilo > --------------------------------------------------------------------- > To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie > For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie --------------------------------------------------------------------- @ENDNODE @NODE "mail_22" " ExecVersion problem " From: F p Ferenc Date: 04-13-02 19:43:24 Subject: @{b}ExecVersion problem@{ub} Hi All! I have a prblem with checking KickStart... First, I have tried this test on KS1.3: If ExecVersion>36 NPrint "OK!" NPrint "Error!" EndIf It worked correctly. After that I built it into my program: If ExecVersion>36 ; Main program here: ... *Cat=OpenCatalogA(0,"test.catalog",0) ... NPrint "Error!" EndIf It is not working on KS1.3! I have checked it with Snoopdos: My program opens locale.libary before KS checking! Is there any solution for checking KS? Regards, Oborzin --------------------------------------------------------------------- @ENDNODE @NODE "mail_23" " Re: ExecVersion problem " From: David McMinn Date: 04-13-02 23:47:48 Subject: @{b}Re: ExecVersion problem@{ub} > I have checked it with Snoopdos: > My program opens locale.libary before KS checking! > Is there any solution for checking KS? The reason for this is that all libraries are initialised at the start of your program. In most (all?) cases, this will include opening any OS libraries that are required. However, this should not matter. If they library cannot be opened, it will not be. You then check for the version of the OS and quit if it is too old. The library will be closed on program exit (if it was opened). I really do not see why this is a problem. [) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | ICQ=16827694 http://www.david-mcminn.co.uk | dave@... WANTED: Meaningful overnight relationship. --------------------------------------------------------------------- @ENDNODE @NODE "mail_24" " Re: ExecVersion problem " From: Bernd Roesch Date: 04-14-02 09:30:32 Subject: @{b}Re: ExecVersion problem@{ub} > My program opens locale.libary before KS checking! > Is there any solution for checking KS? You have a kickstart >1.3 Install and you use Kickstart 1.3. On a clean 1.3 install there is no locale library so this must work ----- Original Message ----- From: "F p Ferenc" To: "Blitz Mailing List" Sent: Saturday, April 13, 2002 8:43 PM Subject: ExecVersion problem > Hi All! > I have a prblem with checking KickStart... > First, I have tried this test on KS1.3: > If ExecVersion>36 > NPrint "OK!" > Else > NPrint "Error!" > EndIf > End > It worked correctly. > After that I built it into my program: > If ExecVersion>36 > ; Main program here: > ... > *Cat=OpenCatalogA(0,"test.catalog",0) > ... > Else > NPrint "Error!" > EndIf > End > It is not working on KS1.3! > I have checked it with Snoopdos: > My program opens locale.libary before KS checking! > Is there any solution for checking KS? > Regards, > Oborzin > --------------------------------------------------------------------- > To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie > For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie --------------------------------------------------------------------- @ENDNODE @NODE "mail_25" " fades " From: john mc hugh Date: 04-06-02 09:03:23 Subject: @{b}fades@{ub} Hello, Kind regards, John could you please tell me if anybody knows how to get a (256)cols slice to fade in or out and if so send details thank you --------------------------------------------------------------------- @ENDNODE @NODE "mail_26" " Re: fades " From: David McMinn Date: 04-07-02 23:22:59 Subject: @{b}Re: fades@{ub} On 6 Apr 2002 at 13:03, john mc hugh wrote: > could you please tell me if anybody > knows how to get a (256)cols slice to fade in or out > and if so send details You can't make Slices that have 256 colours, you need to use the DisplayLibrary. And if the built in commands do not work very well, you could always write your own code to do the fade: loop: For frames=0 To 255 For i.w=0 To 255 AGAPalRGB 0,i,Max(AGARed(i)-1, 0), Max(AGAGreen(i)-1,0), Max(AGABlue(i)-1,0) Next DisplayPalette 0,0 VWait Next [) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | ICQ=16827694 http://www.david-mcminn.co.uk | dave@blitz- 2000.co.uk What is this talk of 'release'? Klingons do not make software 'releases'. Our software 'escapes' leaving a bloody trail of designers and quality assurance people in it's wake. --------------------------------------------------------------------- @ENDNODE @NODE "mail_27" " Include " From: amorel Date: 04-08-02 03:20:34 Subject: @{b}Include@{ub} I can`t seem to be able to include a file anymore. No matter what I try, yes I did all the obvious. Is there a problem with this in AB? Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_28" " Include " From: amorel Date: 04-08-02 03:27:00 Subject: @{b}Include@{ub} Ok ignore that, it was some deeper include in the included file screwing up. Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_29" " let the program code and compile itself. " From: Joar Berntsen Date: 04-29-02 13:20:37 Subject: @{b}let the program code and compile itself.@{ub} this is a frightening project of mine, that randomly alters some strings in the editor, and compiles itself. you only need to start it by compiling once. the strings then develop randomly each compilation. the two last lines in the code is dependant on how long the menu takes to react after the mousebutton is released. if it reacts too quick, the prog is not allowed to compile because the current has not ended yet. If you have that problem, you could try to run something cpu consuming in the background. you need to have a 640x512 display, and any size 8 font to make it work. the included prefs can make this for you. ( copy to env ) if you let it develop too long, one of the strings eventually gets too long, and the prog can not compile without error. I hope it gives you cool ideas, as it gave me. feedback is welcome. @{fg shine}There should be a file mail_29/codewriter.lha included with this guide.@{fg text} @ENDNODE @NODE "mail_30" " Memory loss " From: amorel Date: 04-05-02 23:43:16 Subject: @{b}Memory loss@{ub} Been doing some tests to check memory loss of my app. And it seems it loses 32 bytes everytime I start and quit it. Anyone got an idea why that`d happen(like maybe that specific amount of loss sounds familiar)? I do a dim list name(0) before quitting, to clean up dynamic list arrays. afaik Normal list arrays clean up automatically. Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html ----* Coming soon a new audio and midi sequencer on AmigaOS *---- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_31" " move.w x(d1,a0),d0 " From: Thilo K hler Date: 04-19-02 18:11:17 Subject: @{b}move.w x(d1,a0),d0@{ub} Hi all! Short question: I want to use the ASM instruction move.w x(d1, a0),d0 where the effective adress is calculated like this adress = a0 + d1 + x a0 containes the base adress d1 containes a variable offset and x is an byte long constant. in the manual for the 68k assembler is written that the offset defined in d1 can be byte, word or longword. But there is only one Blitz ASM command for that. Which offset size for d1 does it use and is there a posiblility to choose ? Ciao, Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_32" " Re: move.w x(d1,a0),d0 " From: David McMinn Date: 04-19-02 18:51:55 Subject: @{b}Re: move.w x(d1,a0),d0@{ub} On 19 Apr 2002 at 18:11, Thilo K hler wrote: > in the manual for the 68k assembler is written that > the offset defined in d1 can be byte, word or longword. > But there is only one Blitz ASM command for that. > Which offset size for d1 does it use and is there a posiblility to > choose ? IIRC you can you move.w x(a0, d1.l) (or .b or .w) to specify the size. It defaults to word size. [) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | ICQ=16827694 http://www.david-mcminn.co.uk | dave@... For Sale: Parachute. Only used once, never opened, small stain. --------------------------------------------------------------------- @ENDNODE @NODE "mail_33" " Re: move.w x(d1,a0),d0 " From: Thilo K hler Date: 04-19-02 21:38:43 Subject: @{b}Re: move.w x(d1,a0),d0@{ub} Hello David > IIRC you can you move.w x(a0, d1.l) (or .b or .w) to specify the size. It > defaults to word size. Thanks! Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_34" " New sequencer " From: amorel Date: 04-08-02 13:51:51 Subject: @{b}New sequencer@{ub} Take a look ath this site: http://www.aseq.de for some info and a screenshot of my upcoming sequencer. Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_35" " Re: New sequencer " From: Anton Reinauer Date: 04-09-02 01:50:12 Subject: @{b}Re: New sequencer@{ub} On 09-Apr-02, amorel wrote: > Take a look ath this site: http://www.aseq.de for some info and a > screenshot of my upcoming sequencer. Hey coool stuff man. It's come a long way from a simple mod player! Anton Reinauer http://homepages.paradise.net.nz/ants --------------------------------------------------------------------- @ENDNODE @NODE "mail_36" " Re: New sequencer " From: amorel Date: 04-09-02 03:35:51 Subject: @{b}Re: New sequencer@{ub} On 09-Apr-02, Anton Reinauer wrote: C= Hey coool stuff man. It's come a long way from a simple mod player! Thanks. Yeah and I hope it could give me some income some day ;-) Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_37" " RI disassembly library " From: David McMinn Date: 04-04-02 01:26:14 Subject: @{b}RI disassembly library@{ub} Anyone got this library? I can't find it anywhere on my system and it would be very useful for me ATM (disassembler.library is not suitable). Thanks. [) /\ \/ ][ [) |\/| |\/| ][ |\| |\| | dave@... http://www.david-mcminn.co.uk | ICQ = 16827694 Windows NT crashed. I am the Blue Screen of Death. No one hears your screams. --------------------------------------------------------------------- @ENDNODE @NODE "mail_38" " Re: RI disassembly library " From: Bernd Roesch Date: 04-04-02 15:02:24 Subject: @{b}Re: RI disassembly library@{ub} I have update this library to support 020/881 instructions Is this not in the reddebuger source i send to you ? ----- Original Message ----- From: "David McMinn" To: Sent: Thursday, April 04, 2002 2:26 AM Subject: RI disassembly library Anyone got this library? I can't find it anywhere on my system and it would be very useful for me ATM (disassembler.library is not suitable). Thanks. [) /\ \/ ][ [) |\/| |\/| ][ |\| |\| | dave@... http://www.david-mcminn.co.uk | ICQ = 16827694 Windows NT crashed. I am the Blue Screen of Death. No one hears your screams. --------------------------------------------------------------------- @ENDNODE @NODE "mail_39" " Re: RI disassembly library " From: Toby Zu dveld Date: 04-05-02 02:25:05 Subject: @{b}Re: RI disassembly library@{ub} Hello David On 04-Apr-02, you wrote: DM> Anyone got this library? I can't find it anywhere on my system and DM> it would be very useful for me ATM (disassembler.library is not Shit, I meant to send that to David privately... sorry list =[ Kind regards Toby Zu dveld "I've always been fascinated by beaver..." - The Crocodile Hunter mailto:hotcakes@... Noiz Phaktah - ftp://us.aminet.net icq:22571515 /pub/aminet/mods/sets/NP_*.lha * -**** ATARI ****- ...Ummm - Who? According to http://www.thespark.com, I'm a female EXPERIMENTER with an IQ of 115, I "like to think I'm honest... but I'm not", I'm a "Likeable Male Enigma", I got dubbed "your Wholiness", I'm 62% lazy, 39% a bastard, 53% pure, 17% stressed, 26% of a good lover, 74% of an ass, 80% un-telligent, that's 47% greedy which is enough to spread a jar of mayonnaise in my underwear and wear it for a month straight for $191, reach my first million at 46 and die at the age of 81 after having 3 children and sex with 10 whole different people. --------------------------------------------------------------------- @ENDNODE @NODE "mail_40" " Re: RI disassembly library " From: Toby Zu dveld Date: 04-05-02 02:23:49 Subject: @{b}Re: RI disassembly library@{ub} Hello David On 04-Apr-02, you wrote: DM> Anyone got this library? I can't find it anywhere on my system and DM> it would be very useful for me ATM (disassembler.library is not Attached. Kind regards Toby Zu dveld "I've always been fascinated by beaver..." - The Crocodile Hunter mailto:hotcakes@... Noiz Phaktah - ftp://us.aminet.net icq:22571515 /pub/aminet/mods/sets/NP_*.lha The best revenge is a vow to never be like the one who hurt you. According to http://www.thespark.com, I'm a female EXPERIMENTER with an IQ of 115, I "like to think I'm honest... but I'm not", I'm a "Likeable Male Enigma", I got dubbed "your Wholiness", I'm 62% lazy, 39% a bastard, 53% pure, 17% stressed, 26% of a good lover, 74% of an ass, 80% un-telligent, that's 47% greedy which is enough to spread a jar of mayonnaise in my underwear and wear it for a month straight for $191, reach my first million at 46 and die at the age of 81 after having 3 children and sex with 10 whole different people. @{fg shine}There should be a file mail_40/ridisasmlib.obj included with this guide.@{fg text} @{fg shine}There should be a file mail_40/disasm-library.bb2.xtra included with this guide.@{fg text} @{fg shine}There should be a file mail_40/disasm-library.bb2 included with this guide.@{fg text} @ENDNODE @NODE "mail_41" " Shared Library in Blitz " From: Thilo K hler Date: 04-25-02 15:16:32 Subject: @{b}Shared Library in Blitz@{ub} Hi all! I want to create a shared library providing some functions. Is is possible to do that in Blitz (of course it is, but how ;-) Lets say I want to do a library that provides the function a.l = b.l * c.l and a.l = b.l / c.l Am I right doing it like this: _______________________________ snip! JMP multiply JMP divide JMP more_functions JMP ... multiply: Putreg d0,a.l ; get the params from d0 and d1 Putreg d1,b.l c.l = a * b Getreg d0,c ; store the result in d0 divide: Putreg d0,a.l Putreg d1,b.l c.l = a / b Getreg d0,c ____________________________ snip! and simply compile this to an executable ? Would this work or is there another trick ? Ciao, Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_42" " Re: Shared Library in Blitz " From: David McMinn Date: 04-25-02 16:24:43 Subject: @{b}Re: Shared Library in Blitz@{ub} > Am I right doing it like this: > and simply compile this to an executable ? > Would this work or is there another trick ? No, there are some special structures you need to include in a shared library. Sami Naatanen (I'm sure I spelled that incorrectly) sent some ASM code to the list a long time back showing you how to do it. See attached. [) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | ICQ=16827694 http://www.david-mcminn.co.uk | dave@... If you paint your butt blue and glue your bunghole shut you just 'themed' your butt, but lost the functionality @{fg shine}There should be a file mail_42/own2.lha included with this guide.@{fg text} @ENDNODE @NODE "mail_43" " Re: Shared Library in Blitz " From: Bernd Roesch Date: 04-25-02 19:15:47 Subject: @{b}Re: Shared Library in Blitz@{ub} In baisc it is only possible with AB2 and !initasm !asm !basic macros. I make a example for basic instructions out of the libexample that David send to the list. ----- Original Message ----- From: "Thilo K hler" To: Sent: Thursday, April 25, 2002 4:16 PM Subject: Shared Library in Blitz > Hi all! > I want to create a shared library providing some > functions. Is is possible to do that in Blitz > (of course it is, but how ;-) > Lets say I want to do a library that provides the function > a.l = b.l * c.l and a.l = b.l / c.l > Am I right doing it like this: > _______________________________ snip! > JMP multiply > JMP divide > JMP more_functions > JMP ... > multiply: > Putreg d0,a.l ; get the params from d0 and d1 > Putreg d1,b.l > c.l = a * b > Getreg d0,c ; store the result in d0 > RTS > divide: > Putreg d0,a.l > Putreg d1,b.l > c.l = a / b > Getreg d0,c > RTS > ____________________________ snip! > and simply compile this to an executable ? > Would this work or is there another trick ? > Ciao, > Thilo > --------------------------------------------------------------------- > To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie > For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie --------------------------------------------------------------------- @ENDNODE @NODE "mail_44" " Re: Shared Library in Blitz " From: Thilo K hler Date: 04-26-02 02:31:40 Subject: @{b}Re: Shared Library in Blitz@{ub} Hello Bernd > In baisc it is only possible with AB2 and !initasm !asm !basic macros. > I make a example for basic instructions out of the libexample that David > send to the list. Does this mean Davids example doesnt work ? If it is like this, it would be great to add an example for this to the official AmiBlitz archive. Ciao, Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_45" " Re: Shared Library in Blitz " From: Sami N nen Date: 04-26-02 12:33:13 Subject: @{b}Re: Shared Library in Blitz@{ub} On 2002.04.25 18:24 David McMinn wrote: > > Am I right doing it like this: > > and simply compile this to an executable ? > > Would this work or is there another trick ? > No, there are some special structures you need to include in a shared > library. Sami Naatanen (I'm sure > I spelled that incorrectly) sent some ASM code to the list a long time > back showing you how to do it. Just some "dots" missing. ;) Good that someone had that in safe. I haven't had my Amiga in running condition for ages. As a OT does someone know where to get good (means easy to compile) Amy emulator for linux? --------------------------------------------------------------------- @ENDNODE @NODE "mail_46" " Re: Shared Library in Blitz " From: Sami N nen Date: 04-26-02 13:05:02 Subject: @{b}Re: Shared Library in Blitz@{ub} On 2002.04.26 04:31 Thilo K hler wrote: > Hello Bernd > > In baisc it is only possible with AB2 and !initasm !asm !basic > macros. > > I make a example for basic instructions out of the libexample that > David > > send to the list. > Does this mean Davids example doesnt work ? > If it is like this, it would be great to add an example for > this to the official AmiBlitz archive. The original Blitz can't make shared libs at all, so the example is for assembler (I used PhxAss) not for Blitz. Bernd will make a version that can be used to make shared libraries with AB2. --------------------------------------------------------------------- @ENDNODE @NODE "mail_47" " Re: Shared Library in Blitz " From: Bernd Roesch Date: 04-26-02 13:57:43 Subject: @{b}Re: Shared Library in Blitz@{ub} This example has a second function which show a requester in the libcall ----- Original Message ----- From: "Thilo K hler" To: Sent: Friday, April 26, 2002 3:31 AM Subject: Re: Shared Library in Blitz > Hello Bernd > > In baisc it is only possible with AB2 and !initasm !asm !basic macros. > > I make a example for basic instructions out of the libexample that David > > send to the list. > Does this mean Davids example doesnt work ? > If it is like this, it would be great to add an example for > this to the official AmiBlitz archive. > Ciao, > Thilo > --------------------------------------------------------------------- > To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie > For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie @{fg shine}There should be a file mail_47/amigalibs.lha included with this guide.@{fg text} @ENDNODE @NODE "mail_48" " Re: Shared Library in Blitz " From: Thilo K hler Date: 04-26-02 15:04:30 Subject: @{b}Re: Shared Library in Blitz@{ub} Hello Sami >> Does this mean Davids example doesnt work ? >> If it is like this, it would be great to add an example for >> this to the official AmiBlitz archive. > The original Blitz can't make shared libs at all, so the example is for > assembler (I used PhxAss) not for Blitz. > Bernd will make a version that can be used to make shared libraries > with AB2. Of course I meant your version, but sent by David. Hope that it will be possible soon to make shared libraries, as it is kind of basic feature that a programming language should have. It should also be included in the official distribution. How about implementing this as a feature in the compiler menu ? Could work like this: Menu: compiler->create library adds automatially library startup code, takes the libname from the requested filename and turns all statements and functions into the library functions, in the order it is in the sourcecode. global code that is not within functions will be ignored. Additional it could generate a .fd file out of the function names. Or will it be too difficult and better do this manually ? Ciao, Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_49" " Re: Shared Library in Blitz " From: Thilo K hler Date: 04-26-02 15:11:13 Subject: @{b}Re: Shared Library in Blitz@{ub} Hello Bernd > This example has a second function which show a requester in the libcall OK, and this is a working example when I do "create executable" ? Ciao, Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_50" " Re: Shared Library in Blitz " From: amorel Date: 04-26-02 14:23:41 Subject: @{b}Re: Shared Library in Blitz@{ub} On 26-Apr-02, Sami N nen wrote: C=As a OT does someone know where to get good (means easy to compile) Amy C=emulator for linux? UAE ofcourse, it`s very easy to compile. Regards Sweetness I was only joking when I said I`d like to smash every tooth in your head ... www.xs4all.nl/~amorel/amoralplayer.html Music: www.mp3.com/vopak and www.xs4all.nl/~amorel/amusic.html -----* Aseq, a new midi/audio sequencer http://www.aseq.de *----- -----------* ( QNX, Linux and Dos versions planned ) *----------- --------------------------------------------------------------------- @ENDNODE @NODE "mail_51" " Re: Shared Library in Blitz " From: David McMinn Date: 04-26-02 14:54:25 Subject: @{b}Re: Shared Library in Blitz@{ub} > > This example has a second function which show a requester in the libcall > OK, and this is a working example when I do "create executable" ? The example I sent (it was Sami's code that I had converted to Blitz style ASM) should work when you do a create executable. As for Blitz creating libraries, that would be cool. I guess it could be made simpler if the code which is generated for startup ATM is simply put into the LibOpen (well, not the open one, the one which gets called when the library is LoadSeg'ed into memory) routine and the exit code is put into the one for unloading. Of course it may need some testing to make sure that there are no conflicts which would cause deadlocks (such as messing with ramlib). And the programmer would need some care to make sure their procedures are re-entrant (I like Thilo's idea of making all statements/functions the library functions). [) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | ICQ=16827694 http://www.david-mcminn.co.uk | dave@... If you paint your butt blue and glue your bunghole shut you just 'themed' your butt, but lost the functionality --------------------------------------------------------------------- @ENDNODE @NODE "mail_52" " Re: Shared Library in Blitz " From: Thilo K hler Date: 04-26-02 16:03:37 Subject: @{b}Re: Shared Library in Blitz@{ub} Hello David > The example I sent (it was Sami's code that I had converted to Blitz style > ASM) should work when you do a create executable. So I am confused now. Which example should I use ? Sami's or Bernie's ? What are the differences ? I guess that Bernie added the code to be able to use Blitz commands and vars within the library functions, whereas Samis example does not install the a5 for Variables and so on. Am I right ? As making a library out of blitz statements is a very schematical task, I guess it could be easily done by amiblitz itself, so you avoid makeing mistakes cause the startup code is quite wired. if it is done once correctly be Bernie) Ciao, Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_53" " Re: Shared Library in Blitz " From: Bernd Roesch Date: 04-26-02 17:19:27 Subject: @{b}Re: Shared Library in Blitz@{ub} > How about implementing this as a feature in the compiler menu ? > Could work like this: Too much work. I think it is enough to have a example in the guide that show places where you add stuff Because you have same limits as C that you cannot sourcelevel debug libs so you need switch the debugger to asm mode. Its not for beginners and Sami s example is enough for advanced Users.If problems still exist ask me i can then update the docu interactive so that it is better understand ----- Original Message ----- From: "Thilo K hler" To: Sent: Friday, April 26, 2002 4:04 PM Subject: Re: Shared Library in Blitz > Hello Sami > >> Does this mean Davids example doesnt work ? > >> If it is like this, it would be great to add an example for > >> this to the official AmiBlitz archive. > > The original Blitz can't make shared libs at all, so the example is for > > assembler (I used PhxAss) not for Blitz. > > Bernd will make a version that can be used to make shared libraries > > with AB2. > Of course I meant your version, but sent by David. > Hope that it will be possible soon to make > shared libraries, as it is kind of basic feature > that a programming language should have. > It should also be included in the official distribution. > How about implementing this as a feature in the compiler menu ? > Could work like this: > Menu: > compiler->create library > adds automatially library startup code, takes > the libname from the requested filename and turns > all statements and functions into the library functions, > in the order it is in the sourcecode. > global code that is not within functions will be ignored. > Additional it could generate a .fd file out of the > function names. > Or will it be too difficult and better do this manually ? > Ciao, > Thilo > --------------------------------------------------------------------- > To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie > For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie --------------------------------------------------------------------- @ENDNODE @NODE "mail_54" " Re: Shared Library in Blitz " From: David McMinn Date: 04-26-02 19:01:31 Subject: @{b}Re: Shared Library in Blitz@{ub} Hi Thilo, > > The example I sent (it was Sami's code that I had converted to Blitz > > style ASM) should work when you do a create executable. > So I am confused now. Which example should I use ? > Sami's or Bernie's ? > What are the differences ? From what I remember, Sami's code is simply an example of using Blitz to create shared libraries, but it is all in ASM. Bernd's code shows how to use basic code (I do not know if that includes commands - I have not tried his example yet). It may not work with commands if the Blitz libraries need to allocate some stuff on program startup because that program startup code would not get executed when a library is loaded into memory. However, I guess you could do it like e.g. Miami - you have a separate program which is run normally and then use MakeLibrary to create the shared library. Then you should be able to use normal Blitz commands as the normal program startup code is executed. Feel free to correct me if I am wrong about the startup code - like I said, I have not tried Bernd's example yet. [) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | ICQ=16827694 http://www.david-mcminn.co.uk | dave@... Ignore this email and I'll summon Satan all over your hard drive! --------------------------------------------------------------------- @ENDNODE @NODE "mail_55" " Re: Shared Library in Blitz " From: David McMinn Date: 04-26-02 19:01:31 Subject: @{b}Re: Shared Library in Blitz@{ub} Hi Thilo, > > The example I sent (it was Sami's code that I had converted to Blitz > > style ASM) should work when you do a create executable. > So I am confused now. Which example should I use ? > Sami's or Bernie's ? > What are the differences ? From what I remember, Sami's code is simply an example of using Blitz to create shared libraries, but it is all in ASM. Bernd's code shows how to use basic code (I do not know if that includes commands - I have not tried his example yet). It may not work with commands if the Blitz libraries need to allocate some stuff on program startup because that program startup code would not get executed when a library is loaded into memory. However, I guess you could do it like e.g. Miami - you have a separate program which is run normally and then use MakeLibrary to create the shared library. Then you should be able to use normal Blitz commands as the normal program startup code is executed. Feel free to correct me if I am wrong about the startup code - like I said, I have not tried Bernd's example yet. [) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | ICQ=16827694 http://www.david-mcminn.co.uk | dave@... Ignore this email and I'll summon Satan all over your hard drive! --------------------------------------------------------------------- @ENDNODE @NODE "mail_56" " Re: Shared Library in Blitz " From: Bernd Roesch Date: 04-27-02 10:15:41 Subject: @{b}Re: Shared Library in Blitz@{ub} > However, I guess you could do it like e.g. Miami - you have a separate program which is run > normally and then use MakeLibrary to create the shared library. Then you should be able to use > normal Blitz commands as the normal program startup code is executed. It work with all AB2 commands The stuff at programstartup is done with the command initbasic in library open. end noa7 you release the stuff (on library flush) So you can use this libs with all languages I add labels and more explain (this text)to the example soon. You can get the example working like this: compile ownlib.bb2 1. This create the shared library in the libs: dir of the amiga Now you can use the library with whatever you want. If you wonder wy it is so large (34kb)keep in mind that all basic librarys must add here too like real basic programs Soo for small libs best you use ncommands or no basiccode Note: The libname you use for the file and the libname in the source must EXACT Casesensitive or it dont work best you use small letters. 2. Do the all steps for adding amigalibs. Convert the file own.fd with the AB2 newfdconvert. Note: it suggest as last libnum 217 218 219 Dont use this libnums For the example i use libnum 212 (all libnums >200 are free for private I change the newfdconvert to not list this nums and do the defaultdir for liboutput to userlibs/beta also libs in userlibs/beta should scan for clashes 3. for now you must set the outputdir to userlib/beta and make the file. You need not to make a new deflibs.Only you to do is start AB2 again Now you can load in the own_test.bb2 If the lame.... commands are tokenized all work ok ----- Original Message ----- From: "David McMinn" To: Sent: Friday, April 26, 2002 8:01 PM Subject: Re: Shared Library in Blitz > Hi Thilo, > > > The example I sent (it was Sami's code that I had converted to Blitz > > > style ASM) should work when you do a create executable. > > So I am confused now. Which example should I use ? > > Sami's or Bernie's ? > > What are the differences ? > From what I remember, Sami's code is simply an example of using Blitz to create shared libraries, > but it is all in ASM. > Bernd's code shows how to use basic code (I do not know if that includes commands - I have not > tried his example yet). It may not work with commands if the Blitz libraries need to allocate some > stuff on program startup because that program startup code would not get executed when a library is > loaded into memory. > However, I guess you could do it like e.g. Miami - you have a separate program which is run > normally and then use MakeLibrary to create the shared library. Then you should be able to use > normal Blitz commands as the normal program startup code is executed. > Feel free to correct me if I am wrong about the startup code - like I said, I have not tried > Bernd's example yet. > [) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | ICQ=16827694 > http://www.david-mcminn.co.uk | dave@... > Ignore this email and I'll summon Satan all over your hard drive! > --------------------------------------------------------------------- > To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie > For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie --------------------------------------------------------------------- @ENDNODE @NODE "mail_57" " Simple/stupid question? " From: Patrick Wesseling Date: 04-30-02 14:38:15 Subject: @{b}Simple/stupid question?@{ub} I have the AmiBlitz2 distribution v2.25 (27th March 2002). Does this run on a standard Amiga 1200? I was mainly using Blitz Basic 2 but I thought it was time to give AmiBlitz2 a try. When I run it on a standard A1200 I get the message... No FPU found. Anyone? Patrick @ENDNODE @NODE "mail_58" " Re: Simple/stupid question? " From: David McMinn Date: 04-30-02 17:51:37 Subject: @{b}Re: Simple/stupid question?@{ub} > time to give AmiBlitz2 a try. When I run it on a standard A1200 I get the > message... No FPU found. Anyone? You need an FPU because the editor uses it. [) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | ICQ=16827694 http://www.david-mcminn.co.uk | dave@... Consciousness: That annoying time between naps. --------------------------------------------------------------------- @ENDNODE @NODE "mail_59" " Slotmachine development " From: Fabio Date: 04-05-02 16:07:26 Subject: @{b}Slotmachine development@{ub} I'd need some ideas about programming a slot-machine in BlitzBasic (just for fun). How would you code the gfx effect of the rolling wheels ? --------------------------------------------------------------------- @ENDNODE @NODE "mail_60" " Re: Slotmachine development " From: Thilo K hler Date: 04-05-02 16:39:00 Subject: @{b}Re: Slotmachine development@{ub} Hello Fabio > I'd need some ideas about programming a slot-machine in BlitzBasic > (just for fun). How would you code the gfx effect of the rolling > wheels ? System friendly or in Blitz mode ? System friendly I would open a window and use my image.include for that. Blit a picture all over the window that defines the whole Slotmachine, leaving the slots empty. (e.g. black) You have to modify the blit command a bit to do clipped blitting. Maybe I will add this feature soon. Than I would do a picture that shows all Items in a column and blit a rectanglular area out of this picture to the window at the position where the slots are. like this: ______________________ whole picure start ------ visible clip start, offset within the picture ------ visible clip end ______________________ whole picture end By changing the offset would "rotate" the slots. If you come to the bottom jump to offset zero again or vice versa. Ah, and dont forget that the first Item must be doubled at the bottom to make the illusion perfect. Ciao, Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_61" " Re: Slotmachine development " From: Fabio Date: 04-05-02 18:50:13 Subject: @{b}Re: Slotmachine development@{ub} Ciao Thilo K hler, >System friendly or in Blitz mode ? I'd like to use blitz-mode, because my project needs 9 wheels. >______________________ whole picure start > $ >------ visible clip start, offset within the picture Yes, that seems a good way. Which command should I use to copy an area from a bitmap to another one (I mean Blitz-mode commands) ? Thank you. --------------------------------------------------------------------- @ENDNODE @NODE "mail_62" " Re: Slotmachine development " From: Thilo K hler Date: 04-06-02 00:02:17 Subject: @{b}Re: Slotmachine development@{ub} Hello Fabio Loadbitmap 0,"mybground.iff",0 ; to load your background picture plus palette Loadbitmap 1,"myitems.iff" ; to load your "stripe of items" Use bitmap 0 Slice ... Show bitmap 0 __Loop BEGIN ... manipulate y1 ... VWait scroll x1,y1,width,height,x2,y2,1 __Loop END where x1 = 0 y1 = offset within your stripe bitmap (range from 0 to stripeheight - visibleheight-1) width = width of the stripe bitmap = visible width height = visible height x2 = x pos in your background picture, guess there are 3 positions for 3 slots y2 = y pos in your background picture, should be the same for all 3 slots hope this helps, Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_63" " Re: Slotmachine development " From: Fabio Date: 04-06-02 12:10:20 Subject: @{b}Re: Slotmachine development@{ub} Ciao Thilo K hler, >__Loop BEGIN >... manipulate y1 ... >VWait >scroll x1,y1,width,height,x2,y2,1 >__Loop END Thank you so much, I made a beta version and it seems to work great that On 060/AGA (my system) I can have 6 wheels which scroll without flickering (and maybe more, I havent tried). I was thinking, maybe should I use a double-buffer to increase speed ? And what about dual-playfield ? So I could have some gfx from the background cover some part of the wheels: it would be great indeed. Regards. --------------------------------------------------------------------- @ENDNODE @NODE "mail_64" " Re: Slotmachine development " From: Thilo K hler Date: 04-06-02 14:09:50 Subject: @{b}Re: Slotmachine development@{ub} Hello Fabio > On 060/AGA (my system) I can have 6 wheels which scroll without > flickering (and maybe more, I havent tried). I was thinking, maybe should > I use a double-buffer to increase speed ? And what about dual-playfield ? > So I could have some gfx from the background cover some part of the > wheels: it would be great indeed. Doublebuffering does not increase speed, it gives only more visible stability because you dont see how the next picture is draw. (= less flickering) I would not suggest playfields because you are limited to 8 colours (OCS) and I dont see the advantage of it. What should the second playfield do ? Ciao, Thilo --------------------------------------------------------------------- @ENDNODE @NODE "mail_65" " Re: Slotmachine development " From: MadGun68 Date: 04-06-02 16:06:00 Subject: @{b}Re: Slotmachine development@{ub} Hello Fabio, On 06-Apr-02, you wrote: > Ciao Thilo K hler, >> __Loop BEGIN >> ... manipulate y1 ... >> VWait >> scroll x1,y1,width,height,x2,y2,1 >> __Loop END > Thank you so much, I made a beta version and it seems to work great that > way. > On 060/AGA (my system) I can have 6 wheels which scroll without > flickering (and maybe more, I havent tried). I was thinking, maybe should > I use a double-buffer to increase speed ? And what about dual-playfield ? > So I could have some gfx from the background cover some part of the > wheels: it would be great indeed. You can gain some "speed" by using a method similar to double buffering. Lets say you can scroll the bitmap with the wheels 32 pixels before you need to re-blit new gfx. You show the same bitmap during the scroll, but break those blits down per frame. Esentially, you have 32 frames for blitting your images on to the bitmap that isn't shown. Then you swap bitmaps and begin the process all over again with the other bitmap. Yes, you could use a dual playfield as you describe. You would have, as an example, the slot machine gfx on the front bitmap and the wheel gfx on the back bitmap. Just remember you limit the number of colors you can use that Regards Crossbones/Binary Assault My configuration: A1200T, BlizzardPPC 603e/240 '060/50, Mediator, Voodoo 3 3000, Realtek 8139B NIC, Soundblaster 128, Powerflyer Gold. --------------------------------------------------------------------- @ENDNODE @NODE "mail_66" " Re: Slotmachine development " From: Fabio Date: 04-07-02 09:53:46 Subject: @{b}Re: Slotmachine development@{ub} Ciao MadGun68, >Lets say you can scroll the bitmap with the wheels 32 pixels before you need >to re-blit new gfx. You show the same bitmap during the scroll, but break >those blits down per frame. Please, can you explain better how all this should work ? >Yes, you could use a dual playfield as you describe. You would have, as an >example, the slot machine gfx on the front bitmap and the wheel gfx on the >back bitmap. That is what I was thinking indeed. Though on aminet (games/misc/slots.lha), I saw a program, which has such gfx-effect (little parts of the main background cover the wheels) and it doesn't seem to use a dual playfield mode (each bitmap is a 6-bit depth, that is 64 colours). Thank you. --------------------------------------------------------------------- @ENDNODE @NODE "mail_67" " Slotmachine source " From: Fabio Date: 04-05-02 15:55:54 Subject: @{b}Slotmachine source@{ub} Hello, I'm looking for an example source in Blitz about coding a slot machine (with visual effects and so on) ? Maybe I'm wrong, but I think to have seen such source once. Thanks for help. --------------------------------------------------------------------- @ENDNODE